from pydantic import BaseModel

class DemoCreate(BaseModel):
    username: str
    email: str
    password: str

class DemoResponse(BaseModel):
    id: int
    username: str
    email: str

    class Config:
        orm_mode = True  # 允许ORM模式转换